package com.qssoft.cqry.common.shardingsphere.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @program: cloud-cqry
 * @description: 动态数据源
 * @author: HuaQiao.Deng
 * @create: 2021-01-29 14:45
 */
public class DynamicDataSource extends AbstractRoutingDataSource{
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSourceKey();
    }
}
